﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MadProps;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MadPropsDemo.RecipeEditor
{
    [Meta.Tracking(Tracking.Tracked)]
    public class Ingredient : BaseModel
    {
        public static readonly Ingredient Schema = BuildSchema<Ingredient>();

        [DisplayName("Ingredient Name")]
        [Required]
        public IProp<string> Name { get; protected set; }

        public IProp<decimal> Quantity { get; protected set; }
        public IProp<string> UnitOfMeasure { get; protected set; }
    }
}
